package org.rency.ues.domain.support;

import org.rency.common.utils.domain.BaseResult;
import org.rency.ues.common.UesDict;

/**
 * ${todo}
 *
 * @author: Created by user_rcy@163.com on 2016/7/28.
 */
public class UesResult extends BaseResult {

    /**
	 * 
	 */
	private static final long serialVersionUID = -1127065646128378314L;
	
	private String data;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public static UesResult success(){
        UesResult ues = new UesResult();
        ues.setSuccess(true);
        ues.setReturnMessage(UesDict.CHINESE_SUCCESS_MSG);
        return ues;
    }

    public static UesResult success(String data){
        UesResult ues = new UesResult();
        ues.setSuccess(true);
        ues.setReturnMessage(UesDict.CHINESE_SUCCESS_MSG);
        ues.setData(data);
        return ues;
    }

    public static UesResult fail(String returnMessage){
        UesResult ues = new UesResult();
        ues.setSuccess(false);
        ues.setReturnMessage(returnMessage);
        return ues;
    }
}